package cn.sycoder.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杨润发
 * @since 2024-11-04
 */
@Data
@ApiModel(value = "BehaviorLog对象", description = "")
public class BehaviorLog implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String userName;

    private Long userId;

    // 自动填充
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("0注册，1登录，2注销")
    private Integer type;
}
